﻿@model DHQGHN.PM2.Models.EnumeratorModel

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_LayoutBusiness.cshtml";
}

@using (Html.BeginForm("EditSubmit", "Enumerator"))
{
    @Html.AntiForgeryToken()
    <div class="form-horizontal" align="center">

        @*@Html.ValidationSummary(true)*@

        <link href="~/Content/table.css" rel="stylesheet" />
        <table>
            <tr>
                <td colspan="4">
                    <div>@Html.ValidationMessageFor(model => model.ParentID)</div>
                    <div>@Html.ValidationMessageFor(model => model.AdminisUnitID)</div>
                    <div>@Html.ValidationMessageFor(model => model.EnumCode)</div>
                    <div>@Html.ValidationMessageFor(model => model.FullName)</div>
                    <div>@Html.ValidationMessageFor(model => model.Signature)</div>
                    <div>@Html.ValidationMessageFor(model => model.Description)</div>
                    <div>@Html.ValidationMessageFor(model => model.StartDate)</div>
                </td>
            </tr>
            <tr>
                <td align="left">@Html.LabelFor(model => model.ParentID, new { @class = "control-label col-md-2" })</td>
                <td>@Html.EditorFor(model => model.ParentID, new { @Value= Model.ParentID})</td>
                <td align="left">@Html.LabelFor(model => model.AdminisUnitID, new { @class = "control-label col-md-2" })</td>
                <td>@Html.EditorFor(model => model.AdminisUnitID, new { @Value = Model.AdminisUnitID })</td>
            </tr>
            <tr>
                <td align="left">@Html.LabelFor(model => model.EnumCode, new { @class = "control-label col-md-2" })</td>
                <td>@Html.EditorFor(model => model.EnumCode,  new { @Value= Model.EnumCode})</td>
                <td align="left">@Html.LabelFor(model => model.FullName, new { @class = "control-label col-md-2" })</td>
                <td>@Html.EditorFor(model => model.FullName, new { @Value= Model.FullName})</td>
            </tr>
            <tr>
                <td>@Html.LabelFor(model => model.Signature, new { @class = "control-label col-md-2" })</td>
                <td>@Html.EditorFor(model => model.Signature, new { @Value= Model.Signature})</td>
                <td align="left">@Html.LabelFor(model => model.Description, new { @class = "control-label col-md-2" })</td>
                <td>@Html.EditorFor(model => model.Description, new { @Value= Model.Description})</td>
            </tr>
        </table>

        <div class="form-group" align="center">
            <input type="submit" value="Lưu" />
            <input type="button" value="Quay lại" onclick="window.location.href='@Url.Action("Details")';">
        </div>
    </div>
}

